home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000082_icon-group-sender _Mon Mar 10 18:35:57 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 14 Mar 1997 10:39:40 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 10 Mar 1997 18:35:57 GMT
  4. From: "Dave Schaumann" <dschauma@csci.csc.com>
  5. Message-Id: <01bc2d80$5cac97d0$5f030514@dschauma>
  6. Organization: CSC
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <Pine.SGI.3.95.970305103012.2721A-100000@shellx.best.com>
  9. Subject: Re: Recursive directory traversal in Icon
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: RO
  12. Content-Length: 1329
  13.  
  14.  
  15.  
  16. Brian Rogoff <bpr@best.com> wrote in article
  17. <Pine.SGI.3.95.970305103012.2721A-100000@shellx.best.com>...
  18. > Hi,
  19. >     I've been reading the Icon web references, trying to decide if I 
  20. > should forsake Perl in favor of Icon, and I have two questions.
  21. > (1) How do I traverse a hierarchical directory structure in Icon? I found
  22.  
  23. >     chdir, but I didn't find the equivalent of 'ls' and 'stat'. Is there 
  24. >     a way to do this in Icon, or do you rely on the external environment?
  25.  
  26. This is one of the biggest weaknessess of Icon, especially wrt languages
  27. like Perl -- the support for access to the OS is highly limited.  The file
  28. IO system works pretty good, as does the extension to X.  But other than
  29. that, about all that's available is system() and popen() (which may or may
  30. not have a reasonable analog available on non-Un*x systems).
  31.  
  32. > (2) Why no module system?
  33.  
  34. I can't answer this directly.  However, there is Idol, which has been
  35. described
  36. as "Object Oriented Icon".  That's pretty much all I know about it, so I
  37. don't
  38. know if it supports modules.  I assume that "Object Oriented" means
  39. inheritence,
  40. which means classes, which means some form of encapsulation/data hiding...
  41.  
  42. I agree with your point, though.  Another big weakness of Icon is that
  43. there's
  44. just too much stuff that goes in the global name space.
  45.  
  46. -Dave
  47.  
  48.